Skip to content

通过协议号查询签约

商户通过签约协议号可查询签约信息,当合约不存在时返回NOT_FOUND错误码

请求参数类型描述
contract_idstring签约协议号
php
$instance->v3->eduschoolpay->contracts->_contract_id_->getAsync([
  'contract_id' => '2045011120563805041758214605',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/eduschoolpay/contracts/{contract_id}')->getAsync([
  'contract_id' => '2045011120563805041758214605',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/eduschoolpay/contracts/{contract_id}']->getAsync([
  'contract_id' => '2045011120563805041758214605',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->eduschoolpay->contracts->_contract_id_->get([
  'contract_id' => '2045011120563805041758214605',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/eduschoolpay/contracts/{contract_id}')->get([
  'contract_id' => '2045011120563805041758214605',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/eduschoolpay/contracts/{contract_id}']->get([
  'contract_id' => '2045011120563805041758214605',
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
contract_idstring签约协议号
mchidstring商户号
appidstring商户appid
openidstring商户appid下的用户标识
plan_idstring签约模板号
contract_statusstring签约状态
create_timestring签约时间
out_contract_codestring外部签约号

参阅 官方文档

Published on the GitHub by TheNorthMemory